package com.bitsfromspace.ubertorrent;

/**
 * @author: chris.oudeman
 * @since: Jan 10, 2011
 */
public class Piece {

	private final Sha1Hash hash;
	private final Block[] blocks;

	public boolean isCompleted() {

		for (Block block : blocks) {
			if (!block.isCompleted()) {
				return false;
			}
		}
		return true;
	}


}


